﻿@model Inovout.Cloud.Applications.Security.Models.WebApplicationCredential
<div class="clientId-Dialog">
    <form action='@Url.Action("Update", "WebApplicationCredential", new { projectId = HttpContext.Current.Request.QueryString["projectId"].ToString() })' method="post" >
        @*@Html.AntiForgeryToken()*@
        @Html.ValidationSummary(true)
        <input type="hidden" value="@ViewBag.ApplicationUser.Id" name="ApplicationUser.Id" />
        @Html.HiddenFor(a => a.Id)
        @Html.HiddenFor(a => a.ClientId)
        @Html.HiddenFor(a => a.ClientSecret)
        <div class="clientID-Title">
            <span>修改回调地址</span>
        </div>
        <div id="AuthorizedUrl">
            <h3>Authorized JavaScript origins </h3>
            <div>Cannot contain a wildcard (http://*.example.com) or a path (http://example.com/subdir).</div>
            @Html.TextAreaFor(a => a.JavascriptOrigins, 3, 3, new { @class = "w-1", @placeholder = "源", @style = "height: 5em;", @id = "JavascriptOrigins" })
            <h3>Authorized redirect URI  </h3>
            @Html.TextAreaFor(a => a.RedirectUris, 3, 3, new { @class = "w-1", @placeholder = "请求地址", @style = "height: 5em;", @id = "RedirectUris" })
        </div>
        <div class="project-create-buttons">
            <input type="submit" id="credentialSubmit" value="保存" data-click-command="page.closeDialog()" />
            @*  <input type="button" id="credentialCancel" value="取消" data-click-command="page.closeDialog()" />*@
        </div>
    </form>

</div>
